<%@ page import="cn.gudian.cms.Admin.AdminUser" %>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <title><g:message code="adminUser.show" default="Show AdminUser"/></title>
</head>
<body>
<div class="nav">
  <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}"><g:message code="home" default="Home"/></a></span>
  <span class="menuButton"><g:link class="list" action="list"><g:message code="adminUser.list" default="AdminUser List"/></g:link></span>
  <c:isPermit roles="SYSTEM_ADMIN"><span class="menuButton"><g:link class="create" action="create"><g:message code="adminUser.new" default="New AdminUser"/></g:link></span></c:isPermit>
</div>
<div class="body">
  <h1><g:message code="adminUser.show" default="Show AdminUser"/></h1>
  <g:if test="${flash.message}">
    <div class="message"><g:message code="${flash.message}" args="${flash.args}" default="${flash.defaultMessage}"/></div>
  </g:if>
  <g:form>
    <g:hiddenField name="id" value="${adminUserInstance?.id}"/>
    <div class="dialog">
      <table>
        <tbody>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="adminUser.id" default="Id"/>:</td>

          <td valign="top" class="value">${fieldValue(bean: adminUserInstance, field: "id")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="adminUser.userName" default="User Name"/>:</td>

          <td valign="top" class="value">${fieldValue(bean: adminUserInstance, field: "userName")}</td>

        </tr>


        <tr class="prop">
          <td valign="top" class="name"><g:message code="adminUser.realName" default="Real Name"/>:</td>

          <td valign="top" class="value">${fieldValue(bean: adminUserInstance, field: "realName")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="adminUser.mobile" default="Mobile"/>:</td>

          <td valign="top" class="value">${fieldValue(bean: adminUserInstance, field: "mobile")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="adminUser.email" default="Email"/>:</td>

          <td valign="top" class="value">${fieldValue(bean: adminUserInstance, field: "email")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="adminUser.arcTypeIDs" default="Arc Type ID s"/>:</td>

          <td valign="top" class="value">${fieldValue(bean: adminUserInstance, field: "arcTypeIDs")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="adminUser.loginNum" default="Login Num"/>:</td>

          <td valign="top" class="value">${fieldValue(bean: adminUserInstance, field: "loginNum")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="adminUser.lastLoginTime" default="Last Login Time"/>:</td>

          <td valign="top" class="value"><g:formatDate date="${adminUserInstance?.lastLoginTime}"/></td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="adminUser.lastLoginIP" default="Last Login IP"/>:</td>

          <td valign="top" class="value">${fieldValue(bean: adminUserInstance, field: "lastLoginIP")}</td>

        </tr>

        <tr class="prop">
          <td valign="top" class="name"><g:message code="adminUser.adminRole" default="Admin Role"/>:</td>

          <td valign="top" class="value"><g:link controller="adminRole" action="show" id="${adminUserInstance?.adminRole?.id}">${adminUserInstance?.adminRole?.encodeAsHTML()}</g:link></td>

        </tr>

        </tbody>
      </table>
    </div>
    <c:isPermit roles="SYSTEM_ADMIN">
      <div class="buttons">
        <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'edit', 'default': 'Edit')}"/></span>
        <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'delete', 'default': 'Delete')}" onclick="return confirm('${message(code: 'delete.confirm', 'default': 'Are you sure?')}');"/></span>
      </div>
    </c:isPermit>
  </g:form>
</div>
</body>
</html>
